package leetcode.ge100;

import java.util.HashSet;
import java.util.Set;

class Solution_217 {

	public static void main(String[] args) {

	}

	private Set<Integer> set = new HashSet<Integer>();

	public boolean containsDuplicate(int[] nums) {
		for (int i : nums) {
			if (!set.add(i)) {
				return true;
			}
		}
		return false;
	}

}
